package org.btallarm.gui;

import org.btallarm.R;
import org.btallarm.R.id;
import org.btallarm.R.layout;
import org.btallarm.R.menu;
import org.btallarm.R.string;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class Intro extends Activity {

	Button btnClient=null;
	Button btnServer=null;
	
	
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        // Set up the window layout
        requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
        setContentView(R.layout.intro);
        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);

        // Set up the custom title
        btnClient = (Button) findViewById(R.id.btnClient);
        btnServer = (Button) findViewById(R.id.btnServer);

        btnClient.setOnClickListener(new OnClickListener() {
            public void onClick(View view) {
            	Intent myIntent = new Intent(view.getContext(), ClientActivity.class);
                startActivityForResult(myIntent, 0);
            }
        });
        btnServer.setOnClickListener(new OnClickListener() {
            public void onClick(View view) {
            	Intent myIntent = new Intent(view.getContext(), ServerActivity.class);
                startActivityForResult(myIntent, 0);
                
            }
        });

    }
     
}
